package com.hisysteTopet.hisystepet.utils;

import com.auth0.jwt.interfaces.DecodedJWT;
import lombok.extern.slf4j.Slf4j;

@Slf4j
public class TokenUtils {

    public static String getTokenUsername(String token){
//        log.info("Token={}",token);
        DecodedJWT verify = JWTUtils.verify(token);
//        log.info("username={}",verify.getClaim("username").asString());
        return verify.getClaim("username").asString();
    }

}
